<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String url_path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	request.setAttribute("url_path", url_path);
 %>
	<link rel="stylesheet" href="css/base1.css" type="text/css" />
	<script type="text/javascript">
		$(function(){
			$.ajax({
				url : "${url_path}/welcome/initWelcome",
				type : "post",
				data : {"":""},
 				async : false,
 				success : function(data, status) {
 					var goodsCount = data.goodsList; //获取商品总数
 						//alert(JSON.stringify(goodsCount))
 						//alert(goodsCount[1]);
 					//获取商品的统计
 					$("#goodsTatolA").text(goodsCount[0]+'个');	
 					$("#goodsTatol").text(goodsCount[0]+'个');	
 					$("#goodsClass").text(goodsCount[1]+'个');	
 					$.each(goodsCount, function(i,item){    
 					});	
 					// 获取代理商的数据
 					var agentTotal = data.agentList; 
 					$("#agentTotalA").text(agentTotal[0]+"个");
 					$("#agentTotalB").text(agentTotal[1]+"个");
 					$("#agentTotalC").text(agentTotal[2]+"个");
 					
 					var memberTotal = data.memberList;
 					$("#memberTotalA").text(memberTotal[0]+"个");
 					$("#memberTotalB").text(memberTotal[1]+"个");
 					$("#memberTotalC").text(memberTotal[2]+"个");
 						
 					//统计订单
 					var ordersTotal = data.orderList;
 					$("#ordersTotalA").text(ordersTotal[0]+"元");
 					$("#ordersTotalB").text(ordersTotal[1]+"元");
 					$("#ordersTotalC").text(ordersTotal[2]+"元");	
			    },
			    error : function(xhr, status, e) {
  					//console.log("失败错误信息"+e);
  				}
			});
		});
		

	</script>
	
		<%-- <div class="col-md-12">
		<div class="alert alert-warning alert-block">
		<table>
			<tbody>
				<tr>
					<td align="center" colspan="2"><h1>三合一电商系统后台管理系统</h1></td>
				</tr>
				<tr>
					<td><div class="topBtn" style="font-size: 15px;"></div></td>
					<td style="width: 290px;"><div
							style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; WIDTH: 100%; HEIGHT: 148px; border: 1px solid #cacaca; background: #FFFFFF">
							<div
								style="WIDTH: 100%; clear: both; height: 31px; background-image: url(http://www.tianqi.com/static/images/code/bg_13.jpg); background-repeat: repeat-x; border-bottom: 1px solid #cacaca;">
								<div
									style="float: left; height: 31px; color: #9e0905; font-weight: bold; line-height: 31px; margin-left: 20px; font-size: 14px;">城市天气预报</div>
	
							</div>
							<iframe width="400" scrolling="no" height="120" frameborder="0"
								allowtransparency="true"
								src="http://i.tianqi.com/index.php?c=code&id=19&bgc=%23FFFFFF&bdc=%23&icon=1&temp=1&num=2"></iframe>
						</div></td>
				</tr>
			</tbody>
		</table>
	</div>
	</div> --%>
	<h2>欢迎进入企商云电商平台后台</h2>
	<div class='contentA'>
	     <ul class='clearfloat'>
		     <li>
		      <p>销售订单看板：</p>
		     </li>
		     <li>
		      <span>当天：</span>
		      <span id="ordersTotalA"></span>
		     </li>
		     <li>
		      <span>昨日：</span>
		      <span id="ordersTotalB"></span>
		     </li>
		     <li class='lastLi'>
		      <span>本月：</span>
		      <span id="ordersTotalC"></span>
		     </li>
	     </ul>
	    
	     <ul class='clearfloat'>
		     <li>
		      <p>商品看板：</p>
		     </li>
		     <li>
		      <span>商品上架数：</span>
		      <span id="goodsTatolA">个</span>
		     </li>
		     <li>
		      <span>商品种类：</span>
		      <span id="goodsClass">个</span>
		     </li>
		     <li class='lastLi'>
		      <span>商品总数：</span>
		      <span id="goodsTatol">个</span>
		     </li>
	     </ul>
	   
	     <ul class='clearfloat'>
		     <li>
		      <p>会员看板：</p>
		     </li>
		     <li>
		      <span>本周新增数：</span>
		      <span id="memberTotalA"></span>
		     </li>
		     <li>
		      <span>本月新增数：</span>
		      <span id="memberTotalB"></span>
		     </li>
		     <li class='lastLi'>
		      <span>会员总数：</span>
		      <span id="memberTotalC"></span>
		     </li>
	     </ul>
	     <ul class='clearfloat'>
		     <li>
		      <p>代理商看板：</p>
		     </li>
		     <li>
		      <span>待审核代理商：</span>
		      <span id="agentTotalA"></span>
		     </li>
		     <li>
		      <span>本月新增代理商：</span>
		      <span id="agentTotalB"></span>
		     </li>
		     <li class='lastLi'>
		      <span>代理商总数：</span>
		      <span id="agentTotalC"></span>
		     </li>
	     </ul>
	    
	</div>

